﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<DetailsViewModel>" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="Website.Models.UserAdministration"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

	<link href='<% =Url.Content("~/Content/MvcMembership/MvcMembership.css") %>' rel="stylesheet" type="text/css" />
<form id="form1" runat="server">
    <h2>Create a New Account</h2>
    <p>
        Use the form below to create a new account. 
    </p>
    <p>
        Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
    </p>
    <%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                <p>
                    <label for="username">Username:</label>
                    <%= Html.TextBox("username") %>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="email">Email:</label>
                    <%= Html.TextBox("email") %>
                    <%= Html.ValidationMessage("email") %>
                </p>
                <p>
                    <label for="password">Password:</label>
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <label for="confirmPassword">Confirm password:</label>
                    <%= Html.Password("confirmPassword") %>
                    <%= Html.ValidationMessage("confirmPassword") %>
                </p>
                <p>
                    <input name="role" type="radio" value="Administrator" 
                        style="width: 20px" />Administrator<br />
                    <input name="role" type="radio" value="HiringSpecialist" 
                        style="width: 20px" />Hiring Specialist<br />
                    <input name="role" type="radio" value="HiringManager" 
                        style="width: 20px" />Hiring Manager<br />
                    <input name="role" type="radio" value="StaffingExpert" 
                        style="width: 20px" />Staffing Expert<br />
                </p>
                 <p>
                    
                    <input type="submit" value="Register" />
                </p>

            </fieldset>
        </div>
    <% } %>

    </form>

	

    
</asp:Content>